package com.zabra.zl.ui.profit.contract;

import com.zabra.zl.base.BaseView;
import com.zabra.zl.data.ProfitBean;
import com.zabra.zl.data.SimpleBean;

import retrofit2.Call;

public interface ProfitContract {
    interface Model {
        Call<ProfitBean> getData(int orderid);

        Call<SimpleBean> getSubmitData(int orderid, String money);
    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onSuccess(ProfitBean bean);

        void onSuccess(SimpleBean bean);
    }

    interface Presenter {
        void getData(int orderid);

        void getSubmitData(int orderid, String money);
    }
}
